package moe.oil.dto;


import lombok.Data;
import lombok.experimental.Accessors;
import moe.oil.dto.school.SchoolDTO;
import moe.oil.validation.grop.OnInsert;
import moe.oil.validation.grop.OnUpdate;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;

// 专业
@Data
@Accessors(chain = true)
@Validated({OnInsert.class, OnUpdate.class})
public class ProfessionalDTO {

    private Long professionalId;

    @NotNull(message = "专业名不能为空")
    private String professionalName;

    @NotNull
    private String professionalLevel;

    @NotNull
    private String professionalCategory;

    @NotNull
    private String professionalCode;

    @NotNull
    private String professionalDescription;

    private SchoolDTO schoolDto;

}
